//package cn.blnp.net.flowable.boot.config.flowable;
//
//import cn.blnp.net.flowable.boot.customer.flowable.holder.MultiTenantInfoHolder;
//import cn.blnp.net.flowable.boot.utils.TenantContextHolder;
//import lombok.AllArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.DependsOn;
//import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
//import org.springframework.stereotype.Component;
//
//import javax.sql.DataSource;
//import java.util.Map;
//
///**
// * <h3>动态数据源路由配置</h3>
// *
// * @author <a href="mailto:blnp.yibin@qq.com">lyb</a>
// * @version 1.0
// * @since 2025/6/10 15:09
// */
//@Slf4j
//@Component
//@AllArgsConstructor
//public class TenantDataSourceRouter extends AbstractRoutingDataSource {
//
//    @Override
//    protected Object determineCurrentLookupKey() {
//        return TenantContextHolder.getTenantId();
//    }
//
//    @Override
//    public void setTargetDataSources(Map<Object, Object> targetDataSources) {
//        super.setTargetDataSources(targetDataSources);
//    }
//}
